'''
Created on 2012-9-24

@author: infear
'''
class Boat(object):
    def __init__(self,_index,_x,_y):
        self.index=_index;
        self.x=_x;
        self.y=_y;
        self.visit=False;
    
    def setPos(self,_pos):
        self.x,self.y=_pos;
        
    def getPos(self):
        return self.x,self.y;
    
    pos=property(getPos,setPos);